package com.cnt.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cnt.entity.Donations;
import com.cnt.entity.DonationsInfo;
import com.cnt.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DonationsInfoDao extends BaseMapper<DonationsInfo> {
    @Select("select donations_info_id,donation_id,incident,family,finance,status from donations_info where donation_id = #{donationId}")
    DonationsInfo selectByDonationId(Integer donationId);

    @Select("select * from donations_info where donation_id = #{donationId}")
    public DonationsInfo getFileByDonationId(Integer donationId);
}
